package com.alibaba.algo.exception;

import lombok.Getter;

/**
 * @author Fan.tianpeng
 * @date 2021/4/25 20:08
 */
@Getter
public enum SysOrgErrorCode {
    HAS_UNIQUE_ORG_NAME(20100, "组织名称必须唯一"),
    HAS_UNIQUE_ORG_CODE(20103, "组织编码必须唯一"),
    END_TIME_IS_BEFORE_START_TIME(20101, "有效截止时间在开始时间之前"),
    ORG_REQUIRED_PARAM_IS_ILLEGAL(20102,"组织查询参数不合法，组织编码、组织名称不能同时为空");

    private Integer code;

    private String message;

    SysOrgErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
